<div class="block bg-gray p30">
	<div class="layui-container sorting-box">
		<div class="bui-box-align-middle">
			<div class="f18">媒体分类</div>
			<div class="span1 ml30">
				<a class="<?= $data['third_cate']=='0' ? 'active' : '';?>" href="/goodslist?second_cate=<?= $data['second_cate'] ?>">全部</a>
				<?php foreach($data['third_cate_arr'] as $cate){ ?>
				<a class="<?= $data['third_cate']==$cate['id'] ? 'active' : '';?>" href="/goodslist?second_cate=<?= $data['second_cate'] ?>&third_cate=<?= $cate['id'] ?>"><?= $cate['name'] ?></a>
				<?php } ?>
			</div>
		</div>
	</div>			
</div>
<div class="layui-container mt30">
	<div class="layui-row layui-col-space30">				
		<?php foreach($data['goodsdata'] as $goods){ ?>
			<div class="layui-col-xs6 layui-col-md4">
				<div class="img-box img-box-md bg-gray">
					<a href="/goodsdetail?goods_id=<?= $goods['id'] ?>">
					<img src="<?= $goods['img'] ?>"/>
					</a>
				</div>			
				<div class="bui-box-align-middle p15 f14 bg-gray">																	
					<div class="span1">
						<div class="ellipsis"><?= $goods['name'] ?></div>
						<div class="red">¥<strong class="f22"><?= $goods['price'] ?></strong>/月</div> 										
					</div>		
					<div class="ml15"><a class="layui-btn layui-btn-sm layui-btn-red" href="/goodsdetail?goods_id=<?= $goods['id'] ?>">立即投放</a> </div>
				</div>
			</div>
		<?php } ?>
	</div>
	<div class="text-c p-tradelist-pager">
            <?= $page?>
	</div>
</div>				